<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Home extends My_Controller {

    public function __construct() {
        parent::__construct();
    }

    /**
     * Index Page for this controller.

     */
    public function index() {
        //Add css into template
        $dataView['imageFrontPath'] = $this->_config['base_url'] . $this->_staticPathPublic . 'images';
        $this->template->parse_view('content', $this->_viewFront . 'home_view', $dataView);
        $this->template->render();
    }

    public function arc() {
        $arrInput = array(
            'sectionid' => 45
        );

        $this->load->model('frontend/article_model', 'Article', TRUE);
        $result = $this->Article->arc_GetNewestBySection($arrInput);
        print_r($result);
        die('Debug');
    }

    public function sec() {
        $arrInput = array(
        );
        $CI = get_instance();
        $this->load->model('frontend/section_model', 'Section', TRUE);
        $result = $CI->Section->sec_GetALLSection($arrInput);
        echo "<pre>";
        print_r($result);
        echo "</pre>";
        die('Debug');
    }

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */